<table class="table table-striped m-b-none">
  <thead>
    <tr>
      <th class="with-checkbox">
        <input type="checkbox" />
      </th>
      <th style="width:100px">名称</th>
      <th>类型</th>
      <th>面值</th>
      <th style="width:150px">有效时间</th>
      <th>状态</th>
    </tr>
  </thead>
  <tbody>
    {{if data.activity}}
      {{each data.activity as zitem}}
      <tr>
        <td>
          <input type="checkbox" value="{{zitem.id}}" data-names="{{zitem.name}}" {{activity_selected zitem.id selectid}}></td>
        <td>{{zitem.name}}</td>
        <td>{{zitem.type}}</td>
        <td>￥{{zitem.value}}</td>
        <td>{{zitem.date}}</td>
        <td>{{zitem.status}}</td>
      </tr>
      {{/each}}
{{else}}
    <tr>
      <td colspan="6" class="nodata text-center">暂无数据</td>
    </tr>
    {{/if}}
  </tbody>
</table>
{{if data.count>0}}
<footer class="footer bg-white b-t m-t-sm" data-type="ajaxPage">
  <div class="row text-center-xs">
    <div class="col-md-6 hidden-sm">
      <p class="text-muted m-t">总共{{data.count}}条 当前为第{{data.currentPage}}页</p>
    </div>
    <div class="col-md-6 col-sm-12 text-right text-center-xs">
      <ul class="pagination pagination-sm m-t-sm m-b-none" data-apages-total="{{data.totalPage}}" data-apage-current="{{data.currentPage}}">

        <li {{if data.currentPage==1}} class="disabled"{{/if}}>
          <a href="javascript:;" rel="first" data-page-num="1"> <i class="fa fa-angle-double-left" title="第一页"></i>
          </a>
        </li>
        <li {{if data.currentPage==1}} class="disabled"{{/if}}>
          <a href="javascript:;" rel="prev" data-page-num="{{data.currentPage-1}}"> <i class="fa fa-angle-left" title="上一页"></i>
          </a>
        </li>
        {{each data.pagelist as item}}
        <li {{if data.currentPage==item}} class="active"{{/if}}>
          <a href="javascript:;" data-page-num="{{item}}" data-page-isnum="true">{{item}}</a>
        </li>
        {{/each}}
        <li {{if data.currentPage==data.totalPage}} class="disabled"{{/if}}>
          <a href="javascript:;" rel="next" data-page-num="{{data.currentPage+1}}">
            <i class="fa fa-angle-right" title="下一页"></i>
          </a>
        </li>
        <li {{if data.currentPage==data.totalPage}} class="disabled"{{/if}}>
          <a href="javascript:;" rel="last" data-page-num="{{data.totalPage}}">
            <i class="fa fa-angle-double-right" title="最后页" ></i>
          </a>
        </li>
      </ul>
    </div>
  </div>
</footer>
{{/if}}